package com.bianxingji.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.bianxingji.dto.BxjStarDto;
import com.bianxingji.model.PageResult;
import com.bianxingji.po.BxjStar;
import com.bianxingji.vo.BxjStarVo;

import java.io.IOException;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wy
 * @since 2024-12-09
 */
public interface BxjStarService extends IService<BxjStar> {

    PageResult<BxjStar> getRandomStarList();
    PageResult<BxjStarVo> getPage( Map<String,Object> map);

    boolean updateStatus(Integer id, Integer status);

    boolean saveOrUpdateStar(BxjStarDto bxjStarDto);

    boolean deleteStar(BxjStarDto bxjStarDto);

    boolean deleteBatch(String [] ids);

    boolean uploadAvatar(BxjStar bxjStar) throws IOException;
}
